ExamPlay Light Logo
로그인

Computer Science for IGCSE & O level - Programming (Section 9 - No. 41)

What does the following Python code do? `myFile = open('myText.txt', 'r')`
Opens a file named 'myText.txt' for writing.
Opens a file named 'myText.txt' for reading.
Closes a file named 'myText.txt'.
Creates a file named 'myText.txt'.

설명

The 'r' means 'read' mode, for reading from the file.

댓글 (0)

댓글을 달려면 로그인하세요
광고
BrainBehindX Inc Logo
©2026; 에 의해 구동 BrainBehindX Inc